package com.briup.es.web.controller;

import com.briup.es.config.response.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试接口
 */
@Api(tags = "测试模块")
@RestController
public class TestController {

    @ApiOperation("测试接口")
    @GetMapping("/test")
    public Result<?> test() {
//        int a = 10 / 0;
        return Result.success("欢迎进行测试")
                .apply("测试成功");
    }
}
